package com.meichis.yndms.vm;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

import com.meichis.mcsappframework.utils.SharePreferenceUtil;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-03-11 12:49
 */
public class MyAndroidViewModel extends AndroidViewModel {

    private MutableLiveData<Boolean> showDialog;


    public SharePreferenceUtil util = SharePreferenceUtil.getInstance();

    public MyAndroidViewModel(@NonNull Application application) {
        super(application);
    }


    public MutableLiveData<Boolean> getShowDialog() {
        if (showDialog == null) {
            showDialog = new MutableLiveData<>();
            showDialog.setValue(false);
        }
        return showDialog;
    }

}
